#include "app_4g.h"


#define LOG_TAG                        "at.ec200x"
#include <at_log.h>

#define EC200X_DEIVCE_NAME       "4g"
#define EC200X_CLIENT_NAME     	 "uart5"
#define EC200X_RECV_BUFF_LEN		  1024

#define POWER_4G_PIN GET_PIN(H,6)

static struct at_device_ec200x _dev =
{
    EC200X_DEIVCE_NAME,
    EC200X_CLIENT_NAME,

    -1,
    -1,
    -1,
    EC200X_RECV_BUFF_LEN,
};

int lte_register(void)
{
		rt_pin_mode(POWER_4G_PIN,PIN_MODE_OUTPUT);
	
		rt_pin_write(POWER_4G_PIN,PIN_HIGH);
		
    struct at_device_ec200x *ec200x = &_dev;

    return at_device_register(&(ec200x->device),
                              ec200x->device_name,
                              ec200x->client_name,
                              AT_DEVICE_CLASS_EC200X,
                              (void *) ec200x);
}



